home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Dev / gcc-2.6.3-bin.lha / GNU / info / gcc.info-1 (.txt) < prev    next >
GNU Info File  |  1995-03-30  |  42KB  |  692 lines

  1. This is Info file gcc.info, produced by Makeinfo-1.55 from the input
  2. file gcc.texi.
  3.    This file documents the use and the internals of the GNU compiler.
  4.    Published by the Free Software Foundation 675 Massachusetts Avenue
  5. Cambridge, MA 02139 USA
  6.    Copyright (C) 1988, 1989, 1992, 1993, 1994 Free Software Foundation,
  7.    Permission is granted to make and distribute verbatim copies of this
  8. manual provided the copyright notice and this permission notice are
  9. preserved on all copies.
  10.    Permission is granted to copy and distribute modified versions of
  11. this manual under the conditions for verbatim copying, provided also
  12. that the sections entitled "GNU General Public License," "Funding for
  13. Free Software," and "Protect Your Freedom--Fight `Look And Feel'" are
  14. included exactly as in the original, and provided that the entire
  15. resulting derived work is distributed under the terms of a permission
  16. notice identical to this one.
  17.    Permission is granted to copy and distribute translations of this
  18. manual into another language, under the above conditions for modified
  19. versions, except that the sections entitled "GNU General Public
  20. License," "Funding for Free Software," and "Protect Your Freedom--Fight
  21. `Look And Feel'", and this permission notice, may be included in
  22. translations approved by the Free Software Foundation instead of in the
  23. original English.
  24. File: gcc.info,  Node: Top,  Next: Copying,  Up: (DIR)
  25. Introduction
  26. ************
  27.    This manual documents how to run, install and port the GNU compiler,
  28. as well as its new features and incompatibilities, and how to report
  29. bugs.  It corresponds to GNU CC version 2.6.
  30. * Menu:
  31. * Copying::         GNU General Public License says
  32.                      how you can copy and share GNU CC.
  33. * Contributors::    People who have contributed to GNU CC.
  34. * Funding::         How to help assure funding for free software.
  35. * Look and Feel::   Protect your freedom--fight "look and feel".
  36. * G++ and GCC::     You can compile C or C++ programs.
  37. * Invoking GCC::    Command options supported by `gcc'.
  38. * Installation::    How to configure, compile and install GNU CC.
  39. * C Extensions::    GNU extensions to the C language family.
  40. * C++ Extensions::  GNU extensions to the C++ language.
  41. * Trouble::         If you have trouble installing GNU CC.
  42. * Bugs::            How, why and where to report bugs.
  43. * Service::         How to find suppliers of support for GNU CC.
  44. * VMS::             Using GNU CC on VMS.
  45. * Portability::     Goals of GNU CC's portability features.
  46. * Interface::       Function-call interface of GNU CC output.
  47. * Passes::          Order of passes, what they do, and what each file is for.
  48. * RTL::             The intermediate representation that most passes work on.
  49. * Machine Desc::    How to write machine description instruction patterns.
  50. * Target Macros::   How to write the machine description C macros.
  51. * Config::          Writing the `xm-MACHINE.h' file.
  52. * Index::        Index of concepts and symbol names.
  53. File: gcc.info,  Node: Copying,  Next: Contributors,  Prev: Top,  Up: Top
  54. GNU GENERAL PUBLIC LICENSE
  55. **************************
  56.                          Version 2, June 1991
  57.      Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  58.      675 Mass Ave, Cambridge, MA 02139, USA
  59.      
  60.      Everyone is permitted to copy and distribute verbatim copies
  61.      of this license document, but changing it is not allowed.
  62. Preamble
  63. ========
  64.    The licenses for most software are designed to take away your
  65. freedom to share and change it.  By contrast, the GNU General Public
  66. License is intended to guarantee your freedom to share and change free
  67. software--to make sure the software is free for all its users.  This
  68. General Public License applies to most of the Free Software
  69. Foundation's software and to any other program whose authors commit to
  70. using it.  (Some other Free Software Foundation software is covered by
  71. the GNU Library General Public License instead.)  You can apply it to
  72. your programs, too.
  73.    When we speak of free software, we are referring to freedom, not
  74. price.  Our General Public Licenses are designed to make sure that you
  75. have the freedom to distribute copies of free software (and charge for
  76. this service if you wish), that you receive source code or can get it
  77. if you want it, that you can change the software or use pieces of it in
  78. new free programs; and that you know you can do these things.
  79.    To protect your rights, we need to make restrictions that forbid
  80. anyone to deny you these rights or to ask you to surrender the rights.
  81. These restrictions translate to certain responsibilities for you if you
  82. distribute copies of the software, or if you modify it.
  83.    For example, if you distribute copies of such a program, whether
  84. gratis or for a fee, you must give the recipients all the rights that
  85. you have.  You must make sure that they, too, receive or can get the
  86. source code.  And you must show them these terms so they know their
  87. rights.
  88.    We protect your rights with two steps: (1) copyright the software,
  89. and (2) offer you this license which gives you legal permission to copy,
  90. distribute and/or modify the software.
  91.    Also, for each author's protection and ours, we want to make certain
  92. that everyone understands that there is no warranty for this free
  93. software.  If the software is modified by someone else and passed on, we
  94. want its recipients to know that what they have is not the original, so
  95. that any problems introduced by others will not reflect on the original
  96. authors' reputations.
  97.    Finally, any free program is threatened constantly by software
  98. patents.  We wish to avoid the danger that redistributors of a free
  99. program will individually obtain patent licenses, in effect making the
  100. program proprietary.  To prevent this, we have made it clear that any
  101. patent must be licensed for everyone's free use or not licensed at all.
  102.    The precise terms and conditions for copying, distribution and
  103. modification follow.
  104.     TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  105.   0. This License applies to any program or other work which contains a
  106.      notice placed by the copyright holder saying it may be distributed
  107.      under the terms of this General Public License.  The "Program",
  108.      below, refers to any such program or work, and a "work based on
  109.      the Program" means either the Program or any derivative work under
  110.      copyright law: that is to say, a work containing the Program or a
  111.      portion of it, either verbatim or with modifications and/or
  112.      translated into another language.  (Hereinafter, translation is
  113.      included without limitation in the term "modification".)  Each
  114.      licensee is addressed as "you".
  115.      Activities other than copying, distribution and modification are
  116.      not covered by this License; they are outside its scope.  The act
  117.      of running the Program is not restricted, and the output from the
  118.      Program is covered only if its contents constitute a work based on
  119.      the Program (independent of having been made by running the
  120.      Program).  Whether that is true depends on what the Program does.
  121.   1. You may copy and distribute verbatim copies of the Program's
  122.      source code as you receive it, in any medium, provided that you
  123.      conspicuously and appropriately publish on each copy an appropriate
  124.      copyright notice and disclaimer of warranty; keep intact all the
  125.      notices that refer to this License and to the absence of any
  126.      warranty; and give any other recipients of the Program a copy of
  127.      this License along with the Program.
  128.      You may charge a fee for the physical act of transferring a copy,
  129.      and you may at your option offer warranty protection in exchange
  130.      for a fee.
  131.   2. You may modify your copy or copies of the Program or any portion
  132.      of it, thus forming a work based on the Program, and copy and
  133.      distribute such modifications or work under the terms of Section 1
  134.      above, provided that you also meet all of these conditions:
  135.        a. You must cause the modified files to carry prominent notices
  136.           stating that you changed the files and the date of any change.
  137.        b. You must cause any work that you distribute or publish, that
  138.           in whole or in part contains or is derived from the Program
  139.           or any part thereof, to be licensed as a whole at no charge
  140.           to all third parties under the terms of this License.
  141.        c. If the modified program normally reads commands interactively
  142.           when run, you must cause it, when started running for such
  143.           interactive use in the most ordinary way, to print or display
  144.           an announcement including an appropriate copyright notice and
  145.           a notice that there is no warranty (or else, saying that you
  146.           provide a warranty) and that users may redistribute the
  147.           program under these conditions, and telling the user how to
  148.           view a copy of this License.  (Exception: if the Program
  149.           itself is interactive but does not normally print such an
  150.           announcement, your work based on the Program is not required
  151.           to print an announcement.)
  152.      These requirements apply to the modified work as a whole.  If
  153.      identifiable sections of that work are not derived from the
  154.      Program, and can be reasonably considered independent and separate
  155.      works in themselves, then this License, and its terms, do not
  156.      apply to those sections when you distribute them as separate
  157.      works.  But when you distribute the same sections as part of a
  158.      whole which is a work based on the Program, the distribution of
  159.      the whole must be on the terms of this License, whose permissions
  160.      for other licensees extend to the entire whole, and thus to each
  161.      and every part regardless of who wrote it.
  162.      Thus, it is not the intent of this section to claim rights or
  163.      contest your rights to work written entirely by you; rather, the
  164.      intent is to exercise the right to control the distribution of
  165.      derivative or collective works based on the Program.
  166.      In addition, mere aggregation of another work not based on the
  167.      Program with the Program (or with a work based on the Program) on
  168.      a volume of a storage or distribution medium does not bring the
  169.      other work under the scope of this License.
  170.   3. You may copy and distribute the Program (or a work based on it,
  171.      under Section 2) in object code or executable form under the terms
  172.      of Sections 1 and 2 above provided that you also do one of the
  173.      following:
  174.        a. Accompany it with the complete corresponding machine-readable
  175.           source code, which must be distributed under the terms of
  176.           Sections 1 and 2 above on a medium customarily used for
  177.           software interchange; or,
  178.        b. Accompany it with a written offer, valid for at least three
  179.           years, to give any third party, for a charge no more than your
  180.           cost of physically performing source distribution, a complete
  181.           machine-readable copy of the corresponding source code, to be
  182.           distributed under the terms of Sections 1 and 2 above on a
  183.           medium customarily used for software interchange; or,
  184.        c. Accompany it with the information you received as to the offer
  185.           to distribute corresponding source code.  (This alternative is
  186.           allowed only for noncommercial distribution and only if you
  187.           received the program in object code or executable form with
  188.           such an offer, in accord with Subsection b above.)
  189.      The source code for a work means the preferred form of the work for
  190.      making modifications to it.  For an executable work, complete
  191.      source code means all the source code for all modules it contains,
  192.      plus any associated interface definition files, plus the scripts
  193.      used to control compilation and installation of the executable.
  194.      However, as a special exception, the source code distributed need
  195.      not include anything that is normally distributed (in either
  196.      source or binary form) with the major components (compiler,
  197.      kernel, and so on) of the operating system on which the executable
  198.      runs, unless that component itself accompanies the executable.
  199.      If distribution of executable or object code is made by offering
  200.      access to copy from a designated place, then offering equivalent
  201.      access to copy the source code from the same place counts as
  202.      distribution of the source code, even though third parties are not
  203.      compelled to copy the source along with the object code.
  204.   4. You may not copy, modify, sublicense, or distribute the Program
  205.      except as expressly provided under this License.  Any attempt
  206.      otherwise to copy, modify, sublicense or distribute the Program is
  207.      void, and will automatically terminate your rights under this
  208.      License.  However, parties who have received copies, or rights,
  209.      from you under this License will not have their licenses
  210.      terminated so long as such parties remain in full compliance.
  211.   5. You are not required to accept this License, since you have not
  212.      signed it.  However, nothing else grants you permission to modify
  213.      or distribute the Program or its derivative works.  These actions
  214.      are prohibited by law if you do not accept this License.
  215.      Therefore, by modifying or distributing the Program (or any work
  216.      based on the Program), you indicate your acceptance of this
  217.      License to do so, and all its terms and conditions for copying,
  218.      distributing or modifying the Program or works based on it.
  219.   6. Each time you redistribute the Program (or any work based on the
  220.      Program), the recipient automatically receives a license from the
  221.      original licensor to copy, distribute or modify the Program
  222.      subject to these terms and conditions.  You may not impose any
  223.      further restrictions on the recipients' exercise of the rights
  224.      granted herein.  You are not responsible for enforcing compliance
  225.      by third parties to this License.
  226.   7. If, as a consequence of a court judgment or allegation of patent
  227.      infringement or for any other reason (not limited to patent
  228.      issues), conditions are imposed on you (whether by court order,
  229.      agreement or otherwise) that contradict the conditions of this
  230.      License, they do not excuse you from the conditions of this
  231.      License.  If you cannot distribute so as to satisfy simultaneously
  232.      your obligations under this License and any other pertinent
  233.      obligations, then as a consequence you may not distribute the
  234.      Program at all.  For example, if a patent license would not permit
  235.      royalty-free redistribution of the Program by all those who
  236.      receive copies directly or indirectly through you, then the only
  237.      way you could satisfy both it and this License would be to refrain
  238.      entirely from distribution of the Program.
  239.      If any portion of this section is held invalid or unenforceable
  240.      under any particular circumstance, the balance of the section is
  241.      intended to apply and the section as a whole is intended to apply
  242.      in other circumstances.
  243.      It is not the purpose of this section to induce you to infringe any
  244.      patents or other property right claims or to contest validity of
  245.      any such claims; this section has the sole purpose of protecting
  246.      the integrity of the free software distribution system, which is
  247.      implemented by public license practices.  Many people have made
  248.      generous contributions to the wide range of software distributed
  249.      through that system in reliance on consistent application of that
  250.      system; it is up to the author/donor to decide if he or she is
  251.      willing to distribute software through any other system and a
  252.      licensee cannot impose that choice.
  253.      This section is intended to make thoroughly clear what is believed
  254.      to be a consequence of the rest of this License.
  255.   8. If the distribution and/or use of the Program is restricted in
  256.      certain countries either by patents or by copyrighted interfaces,
  257.      the original copyright holder who places the Program under this
  258.      License may add an explicit geographical distribution limitation
  259.      excluding those countries, so that distribution is permitted only
  260.      in or among countries not thus excluded.  In such case, this
  261.      License incorporates the limitation as if written in the body of
  262.      this License.
  263.   9. The Free Software Foundation may publish revised and/or new
  264.      versions of the General Public License from time to time.  Such
  265.      new versions will be similar in spirit to the present version, but
  266.      may differ in detail to address new problems or concerns.
  267.      Each version is given a distinguishing version number.  If the
  268.      Program specifies a version number of this License which applies
  269.      to it and "any later version", you have the option of following
  270.      the terms and conditions either of that version or of any later
  271.      version published by the Free Software Foundation.  If the Program
  272.      does not specify a version number of this License, you may choose
  273.      any version ever published by the Free Software Foundation.
  274.  10. If you wish to incorporate parts of the Program into other free
  275.      programs whose distribution conditions are different, write to the
  276.      author to ask for permission.  For software which is copyrighted
  277.      by the Free Software Foundation, write to the Free Software
  278.      Foundation; we sometimes make exceptions for this.  Our decision
  279.      will be guided by the two goals of preserving the free status of
  280.      all derivatives of our free software and of promoting the sharing
  281.      and reuse of software generally.
  282.                                 NO WARRANTY
  283.  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
  284.      WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
  285.      LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
  286.      HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
  287.      WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
  288.      NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  289.      FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE
  290.      QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  291.      PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
  292.      SERVICING, REPAIR OR CORRECTION.
  293.  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  294.      WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
  295.      MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
  296.      LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
  297.      INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
  298.      INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
  299.      DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU
  300.      OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
  301.      OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
  302.      ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  303.                       END OF TERMS AND CONDITIONS
  304. How to Apply These Terms to Your New Programs
  305. =============================================
  306.    If you develop a new program, and you want it to be of the greatest
  307. possible use to the public, the best way to achieve this is to make it
  308. free software which everyone can redistribute and change under these
  309. terms.
  310.    To do so, attach the following notices to the program.  It is safest
  311. to attach them to the start of each source file to most effectively
  312. convey the exclusion of warranty; and each file should have at least
  313. the "copyright" line and a pointer to where the full notice is found.
  314.      ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  315.      Copyright (C) 19YY  NAME OF AUTHOR
  316.      
  317.      This program is free software; you can redistribute it and/or modify
  318.      it under the terms of the GNU General Public License as published by
  319.      the Free Software Foundation; either version 2 of the License, or
  320.      (at your option) any later version.
  321.      
  322.      This program is distributed in the hope that it will be useful,
  323.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  324.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  325.      GNU General Public License for more details.
  326.      
  327.      You should have received a copy of the GNU General Public License
  328.      along with this program; if not, write to the Free Software
  329.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  330.    Also add information on how to contact you by electronic and paper
  331. mail.
  332.    If the program is interactive, make it output a short notice like
  333. this when it starts in an interactive mode:
  334.      Gnomovision version 69, Copyright (C) 19YY NAME OF AUTHOR
  335.      Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
  336.      type `show w'.
  337.      This is free software, and you are welcome to redistribute it
  338.      under certain conditions; type `show c' for details.
  339.    The hypothetical commands `show w' and `show c' should show the
  340. appropriate parts of the General Public License.  Of course, the
  341. commands you use may be called something other than `show w' and `show
  342. c'; they could even be mouse-clicks or menu items--whatever suits your
  343. program.
  344.    You should also get your employer (if you work as a programmer) or
  345. your school, if any, to sign a "copyright disclaimer" for the program,
  346. if necessary.  Here is a sample; alter the names:
  347.      Yoyodyne, Inc., hereby disclaims all copyright interest in the program
  348.      `Gnomovision' (which makes passes at compilers) written by James Hacker.
  349.      
  350.      SIGNATURE OF TY COON, 1 April 1989
  351.      Ty Coon, President of Vice
  352.    This General Public License does not permit incorporating your
  353. program into proprietary programs.  If your program is a subroutine
  354. library, you may consider it more useful to permit linking proprietary
  355. applications with the library.  If this is what you want to do, use the
  356. GNU Library General Public License instead of this License.
  357. File: gcc.info,  Node: Contributors,  Next: Funding,  Prev: Copying,  Up: Top
  358. Contributors to GNU CC
  359. **********************
  360.    In addition to Richard Stallman, several people have written parts
  361. of GNU CC.
  362.    * The idea of using RTL and some of the optimization ideas came from
  363.      the program PO written at the University of Arizona by Jack
  364.      Davidson and Christopher Fraser.  See "Register Allocation and
  365.      Exhaustive Peephole Optimization", Software Practice and
  366.      Experience 14 (9), Sept. 1984, 857-866.
  367.    * Paul Rubin wrote most of the preprocessor.
  368.    * Leonard Tower wrote parts of the parser, RTL generator, and RTL
  369.      definitions, and of the Vax machine description.
  370.    * Ted Lemon wrote parts of the RTL reader and printer.
  371.    * Jim Wilson implemented loop strength reduction and some other loop
  372.      optimizations.
  373.    * Nobuyuki Hikichi of Software Research Associates, Tokyo,
  374.      contributed the support for the Sony NEWS machine.
  375.    * Charles LaBrec contributed the support for the Integrated Solutions
  376.      68020 system.
  377.    * Michael Tiemann of Cygnus Support wrote the front end for C++, as
  378.      well as the support for inline functions and instruction
  379.      scheduling.  Also the descriptions of the National Semiconductor
  380.      32000 series cpu, the SPARC cpu and part of the Motorola 88000 cpu.
  381.    * Gerald Baumgartner added the signature extension to the C++
  382.      front-end.
  383.    * Jan Stein of the Chalmers Computer Society provided support for
  384.      Genix, as well as part of the 32000 machine description.
  385.    * Randy Smith finished the Sun FPA support.
  386.    * Robert Brown implemented the support for Encore 32000 systems.
  387.    * David Kashtan of SRI adapted GNU CC to the Vomit-Making System
  388.      (VMS).
  389.    * Alex Crain provided changes for the 3b1.
  390.    * Greg Satz and Chris Hanson assisted in making GNU CC work on HP-UX
  391.      for the 9000 series 300.
  392.    * William Schelter did most of the work on the Intel 80386 support.
  393.    * Christopher Smith did the port for Convex machines.
  394.    * Paul Petersen wrote the machine description for the Alliant FX/8.
  395.    * Dario Dariol contributed the four varieties of sample programs
  396.      that print a copy of their source.
  397.    * Alain Lichnewsky ported GNU CC to the Mips cpu.
  398.    * Devon Bowen, Dale Wiles and Kevin Zachmann ported GNU CC to the
  399.      Tahoe.
  400.    * Jonathan Stone wrote the machine description for the Pyramid
  401.      computer.
  402.    * Gary Miller ported GNU CC to Charles River Data Systems machines.
  403.    * Richard Kenner of the New York University Ultracomputer Research
  404.      Laboratory wrote the machine descriptions for the AMD 29000, the
  405.      DEC Alpha, the IBM RT PC, and the IBM RS/6000 as well as the
  406.      support for instruction attributes.  He also made changes to
  407.      better support RISC processors including changes to common
  408.      subexpression elimination, strength reduction, function calling
  409.      sequence handling, and condition code support, in addition to
  410.      generalizing the code for frame pointer elimination.
  411.    * Richard Kenner and Michael Tiemann jointly developed reorg.c, the
  412.      delay slot scheduler.
  413.    * Mike Meissner and Tom Wood of Data General finished the port to the
  414.      Motorola 88000.
  415.    * Masanobu Yuhara of Fujitsu Laboratories implemented the machine
  416.      description for the Tron architecture (specifically, the Gmicro).
  417.    * NeXT, Inc. donated the front end that supports the Objective C
  418.      language.
  419.    * James van Artsdalen wrote the code that makes efficient use of the
  420.      Intel 80387 register stack.
  421.    * Mike Meissner at the Open Software Foundation finished the port to
  422.      the MIPS cpu, including adding ECOFF debug support, and worked on
  423.      the Intel port for the Intel 80386 cpu.
  424.    * Ron Guilmette implemented the `protoize' and `unprotoize' tools,
  425.      the support for Dwarf symbolic debugging information, and much of
  426.      the support for System V Release 4.  He has also worked heavily on
  427.      the Intel 386 and 860 support.
  428.    * Torbjorn Granlund of the Swedish Institute of Computer Science
  429.      implemented multiply-by-constant optimization and better long long
  430.      support, and improved leaf function register allocation.
  431.    * Mike Stump implemented the support for Elxsi 64 bit CPU.
  432.    * John Wehle added the machine description for the Western Electric
  433.      32000 processor used in several 3b series machines (no relation to
  434.      the National Semiconductor 32000 processor).
  435.    * Holger Teutsch provided the support for the Clipper cpu.
  436.    * Kresten Krab Thorup wrote the run time support for the Objective C
  437.      language.
  438.    * Stephen Moshier contributed the floating point emulator that
  439.      assists in cross-compilation and permits support for floating
  440.      point numbers wider than 64 bits.
  441.    * David Edelsohn contributed the changes to RS/6000 port to make it
  442.      support the PowerPC and POWER2 architectures.
  443.    * Steve Chamberlain wrote the support for the Hitachi SH processor.
  444.    * Peter Schauer wrote the code to allow debugging to work on the
  445.      Alpha.
  446.    * Oliver M. Kellogg of Deutsche Aerospace contributed the port to the
  447.      MIL-STD-1750A.
  448. File: gcc.info,  Node: Funding,  Next: Look and Feel,  Prev: Contributors,  Up: Top
  449. Funding Free Software
  450. *********************
  451.    If you want to have more free software a few years from now, it makes
  452. sense for you to help encourage people to contribute funds for its
  453. development.  The most effective approach known is to encourage
  454. commercial redistributors to donate.
  455.    Users of free software systems can boost the pace of development by
  456. encouraging for-a-fee distributors to donate part of their selling price
  457. to free software developers--the Free Software Foundation, and others.
  458.    The way to convince distributors to do this is to demand it and
  459. expect it from them.  So when you compare distributors, judge them
  460. partly by how much they give to free software development.  Show
  461. distributors they must compete to be the one who gives the most.
  462.    To make this approach work, you must insist on numbers that you can
  463. compare, such as, "We will donate ten dollars to the Frobnitz project
  464. for each disk sold."  Don't be satisfied with a vague promise, such as
  465. "A portion of the profits are donated," since it doesn't give a basis
  466. for comparison.
  467.    Even a precise fraction "of the profits from this disk" is not very
  468. meaningful, since creative accounting and unrelated business decisions
  469. can greatly alter what fraction of the sales price counts as profit.
  470. If the price you pay is $50, ten percent of the profit is probably less
  471. than a dollar; it might be a few cents, or nothing at all.
  472.    Some redistributors do development work themselves.  This is useful
  473. too; but to keep everyone honest, you need to inquire how much they do,
  474. and what kind.  Some kinds of development make much more long-term
  475. difference than others.  For example, maintaining a separate version of
  476. a program contributes very little; maintaining the standard version of a
  477. program for the whole community contributes much.  Easy new ports
  478. contribute little, since someone else would surely do them; difficult
  479. ports such as adding a new CPU to the GNU C compiler contribute more;
  480. major new features or packages contribute the most.
  481.    By establishing the idea that supporting further development is "the
  482. proper thing to do" when distributing free software for a fee, we can
  483. assure a steady flow of resources into making more free software.
  484.      Copyright (C) 1994 Free Software Foundation, Inc.
  485.      Verbatim copying and redistribution of this section is permitted
  486.      without royalty; alteration is not permitted.
  487. File: gcc.info,  Node: Look and Feel,  Next: G++ and GCC,  Prev: Funding,  Up: Top
  488. Protect Your Freedom--Fight "Look And Feel"
  489. *******************************************
  490.      This section is a political message from the League for Programming
  491.      Freedom to the users of GNU CC.  We have included it here because
  492.      the issue of interface copyright is important to the GNU project.
  493.    Apple and Lotus have tried to create a new form of legal monopoly: a
  494. copyright on a user interface.
  495.    An interface is a kind of language--a set of conventions for
  496. communication between two entities, human or machine.  Until a few years
  497. ago, the law seemed clear: interfaces were outside the domain of
  498. copyright, so programmers could program freely and implement whatever
  499. interface the users demanded.  Imitating de-facto standard interfaces,
  500. sometimes with improvements, was standard practice in the computer
  501. field.  These improvements, if accepted by the users, caught on and
  502. became the norm; in this way, much progress took place.
  503.    Computer users, and most software developers, were happy with this
  504. state of affairs.  However, large companies such as Apple and Lotus
  505. would prefer a different system--one in which they can own interfaces
  506. and thereby rid themselves of all serious competitors.  They hope that
  507. interface copyright will give them, in effect, monopolies on major
  508. classes of software.
  509.    Other large companies such as IBM and Digital also favor interface
  510. monopolies, for the same reason: if languages become property, they
  511. expect to own many de-facto standard languages.  But Apple and Lotus are
  512. the ones who have actually sued.  Lotus has won lawsuits against two
  513. small companies, which were thus put out of business.  Then they sued
  514. Borland; this case is now before the court of appeals.  Apple's lawsuit
  515. against HP and Microsoft is also being decided by an appeals court.
  516. Widespread rumors that Apple had lost the case are untrue; as of July
  517. 1994, the final outcome is unknown.
  518.    If the monopolists get their way, they will hobble the software
  519. field:
  520.    * Gratuitous incompatibilities will burden users.  Imagine if each
  521.      car manufacturer had to design a different way to start, stop, and
  522.      steer a car.
  523.    * Users will be "locked in" to whichever interface they learn; then
  524.      they will be prisoners of one supplier, who will charge a
  525.      monopolistic price.
  526.    * Large companies have an unfair advantage wherever lawsuits become
  527.      commonplace.  Since they can afford to sue, they can intimidate
  528.      smaller developers with threats even when they don't really have a
  529.      case.
  530.    * Interface improvements will come slower, since incremental
  531.      evolution through creative partial imitation will no longer occur.
  532.    If interface monopolies are accepted, other large companies are
  533. waiting to grab theirs:
  534.    * Adobe is expected to claim a monopoly on the interfaces of various
  535.      popular application programs, if Borland's appeal against Lotus
  536.      fails.
  537.    * Open Computing magazine reported a Microsoft vice president as
  538.      threatening to sue people who copy the interface of Windows.
  539.    Users invest a great deal of time and money in learning to use
  540. computer interfaces.  Far more, in fact, than software developers
  541. invest in developing *and even implementing* the interfaces.  Whoever
  542. can own an interface, has made its users into captives, and
  543. misappropriated their investment.
  544.    To protect our freedom from monopolies like these, a group of
  545. programmers and users have formed a grass-roots political organization,
  546. the League for Programming Freedom.
  547.    The purpose of the League is to oppose monopolistic practices such as
  548. interface copyright and software patents.  The League calls for a return
  549. to the legal policies of the recent past, in which programmers could
  550. program freely.  The League is not concerned with free software as an
  551. issue, and is not affiliated with the Free Software Foundation.
  552.    The League's activities include publicizing the issue, as is being
  553. done here, and filing friend-of-the-court briefs on behalf of
  554. defendants sued by monopolists.  Recently the League filed a
  555. friend-of-the-court brief for Borland in its appeal against Lotus.
  556.    The League's membership rolls include John McCarthy, inventor of
  557. Lisp, Marvin Minsky, founder of the MIT Artificial Intelligence lab,
  558. Guy L.  Steele, Jr., author of well-known books on Lisp and C, as well
  559. as Richard Stallman, the developer of GNU CC.  Please join and add your
  560. name to the list.  Membership dues in the League are $42 per year for
  561. programmers, managers and professionals; $10.50 for students; $21 for
  562. others.
  563.    Activist members are especially important, but members who have no
  564. time to give are also important.  Surveys at major ACM conferences have
  565. indicated a vast majority of attendees agree with the League.  If just
  566. ten percent of the programmers who agree with the League join the
  567. League, we will probably triumph.
  568.    To join, or for more information, phone (617) 243-4091 or write to:
  569.      League for Programming Freedom
  570.      1 Kendall Square #143
  571.      P.O. Box 9171
  572.      Cambridge, MA 02139
  573.    You can also send electronic mail to `lpf@uunet.uu.net'.
  574.    In addition to joining the League, here are some suggestions from the
  575. League for other things you can do to protect your freedom to write
  576. programs:
  577.    * Tell your friends and colleagues about this issue and how it
  578.      threatens to ruin the computer industry.
  579.    * Mention that you are a League member in your `.signature', and
  580.      mention the League's email address for inquiries.
  581.    * Ask the companies you consider working for or working with to make
  582.      statements against software monopolies, and give preference to
  583.      those that do.
  584.    * When employers ask you to sign contracts giving them copyright or
  585.      patent rights, insist on clauses saying they can use these rights
  586.      only defensively.  Don't rely on "company policy," since that can
  587.      change at any time; don't rely on an individual executive's
  588.      private word, since that person may be replaced.  Get a commitment
  589.      just as binding as the commitment they get from you.
  590.    * Write to Congress to explain the importance of this issue.
  591.           House Subcommittee on Intellectual Property
  592.           2137 Rayburn Bldg
  593.           Washington, DC 20515
  594.           
  595.           Senate Subcommittee on Patents, Trademarks and Copyrights
  596.           United States Senate
  597.           Washington, DC 20510
  598.      (These committees have received lots of mail already; let's give
  599.      them even more.)
  600.    Democracy means nothing if you don't use it.  Stand up and be
  601. counted!
  602. File: gcc.info,  Node: G++ and GCC,  Next: Invoking GCC,  Prev: Look and Feel,  Up: Top
  603. Compile C, C++, or Objective C
  604. ******************************
  605.    The C, C++, and Objective C versions of the compiler are integrated;
  606. the GNU C compiler can compile programs written in C, C++, or Objective
  607.    "GCC" is a common shorthand term for the GNU C compiler.  This is
  608. both the most general name for the compiler, and the name used when the
  609. emphasis is on compiling C programs.
  610.    When referring to C++ compilation, it is usual to call the compiler
  611. "G++".  Since there is only one compiler, it is also accurate to call
  612. it "GCC" no matter what the language context; however, the term "G++"
  613. is more useful when the emphasis is on compiling C++ programs.
  614.    We use the name "GNU CC" to refer to the compilation system as a
  615. whole, and more specifically to the language-independent part of the
  616. compiler.  For example, we refer to the optimization options as
  617. affecting the behavior of "GNU CC" or sometimes just "the compiler".
  618.    Front ends for other languages, such as Ada 9X, Fortran, Modula-3,
  619. and Pascal, are under development.  These front-ends, like that for
  620. C++, are built in subdirectories of GNU CC and link to it.  The result
  621. is an integrated compiler that can compile programs written in C, C++,
  622. Objective C, or any of the languages for which you have installed front
  623. ends.
  624.    In this manual, we only discuss the options for the C, Objective-C,
  625. and C++ compilers and those of the GNU CC core.  Consult the
  626. documentation of the other front ends for the options to use when
  627. compiling programs written in other languages.
  628.    G++ is a *compiler*, not merely a preprocessor.  G++ builds object
  629. code directly from your C++ program source.  There is no intermediate C
  630. version of the program.  (By contrast, for example, some other
  631. implementations use a program that generates a C program from your C++
  632. source.)  Avoiding an intermediate C representation of the program means
  633. that you get better object code, and better debugging information.  The
  634. GNU debugger, GDB, works with this information in the object code to
  635. give you comprehensive C++ source-level editing capabilities (*note C
  636. and C++: (gdb.info)C.).
  637. File: gcc.info,  Node: Invoking GCC,  Next: Installation,  Prev: G++ and GCC,  Up: Top
  638. GNU CC Command Options
  639. **********************
  640.    When you invoke GNU CC, it normally does preprocessing, compilation,
  641. assembly and linking.  The "overall options" allow you to stop this
  642. process at an intermediate stage.  For example, the `-c' option says
  643. not to run the linker.  Then the output consists of object files output
  644. by the assembler.
  645.    Other options are passed on to one stage of processing.  Some options
  646. control the preprocessor and others the compiler itself.  Yet other
  647. options control the assembler and linker; most of these are not
  648. documented here, since you rarely need to use any of them.
  649.    Most of the command line options that you can use with GNU CC are
  650. useful for C programs; when an option is only useful with another
  651. language (usually C++), the explanation says so explicitly.  If the
  652. description for a particular option does not mention a source language,
  653. you can use that option with all supported languages.
  654.    *Note Compiling C++ Programs: Invoking G++, for a summary of special
  655. options for compiling C++ programs.
  656.    The `gcc' program accepts options and file names as operands.  Many
  657. options have multiletter names; therefore multiple single-letter options
  658. may *not* be grouped: `-dr' is very different from `-d -r'.
  659.    You can mix options and other arguments.  For the most part, the
  660. order you use doesn't matter.  Order does matter when you use several
  661. options of the same kind; for example, if you specify `-L' more than
  662. once, the directories are searched in the order specified.
  663.    Many options have long names starting with `-f' or with `-W'--for
  664. example, `-fforce-mem', `-fstrength-reduce', `-Wformat' and so on.
  665. Most of these have both positive and negative forms; the negative form
  666. of `-ffoo' would be `-fno-foo'.  This manual documents only one of
  667. these two forms, whichever one is not the default.
  668. * Menu:
  669. * Option Summary::    Brief list of all options, without explanations.
  670. * Overall Options::     Controlling the kind of output:
  671.                         an executable, object files, assembler files,
  672.                         or preprocessed source.
  673. * Invoking G++::    Compiling C++ programs.
  674. * C Dialect Options::   Controlling the variant of C language compiled.
  675. * C++ Dialect Options:: Variations on C++.
  676. * Warning Options::     How picky should the compiler be?
  677. * Debugging Options::   Symbol tables, measurements, and debugging dumps.
  678. * Optimize Options::    How much optimization?
  679. * Preprocessor Options:: Controlling header files and macro definitions.
  680.                          Also, getting dependency information for Make.
  681. * Assembler Options::   Passing options to the assembler.
  682. * Link Options::        Specifying libraries and so on.
  683. * Directory Options::   Where to find header files and libraries.
  684.                         Where to find the compiler executable files.
  685. * Target Options::      Running a cross-compiler, or an old version of GNU CC.
  686. * Submodel Options::    Specifying minor hardware or convention variations,
  687.                         such as 68010 vs 68020.
  688. * Code Gen Options::    Specifying conventions for function calls, data layout
  689.                         and register usage.
  690. * Environment Variables:: Env vars that affect GNU CC.
  691. * Running Protoize::    Automatically adding or removing function prototypes.
  692.